// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function removeAmount(link) {
    $(link).prev("input[type=hidden]").val(1);
    $(link).parents(".amount").hide();
}

function addAmount() {
    var template = $(".amounts .template");
    template.before("<tr class=\"amount\">" + template.html().replace(/new_amount/g, "new_" + new Date().getTime()) + "</tr>")
}



